package com.ws.lv.service;

import com.ws.lv.bean.Type;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface TypeService {
    List<Type> selectTypeAll();

    List<Type> selectTypes(@Param("type_name") String type_name, @Param("type_state") Integer type_state, @Param("type_order") String type_order);

    int insertType(Type type);

    int updateTypeDisplay(int type_id);

    int updateTypeHide(int type_id);

    int deleteTypes(ArrayList<Integer> type_ids);

    int updateType(Type type);

    Type selectTypeById(int type_id);

    List<Type> homeSelectTypes();
}
